//author:kakake
var Model = /** @class */ (function () {
    function Model() {
    }
    return Model;
}());

//author:kakake
var Common = /** @class */ (function () {
    function Common() {
    }
    return Common;
}());

//author:kakake
var tsbasedictController = /** @class */ (function () {
    function tsbasedictController() {
        this.data = {
            dbConn: TSLobsterAPI.Program.GetDbConn()
        };
    }
    //获取分类
    tsbasedictController.prototype.getdataclass = function () {
        var strsql = "SELECT ClassId,Code,Name,Pym,Wbm,Szm,Memo,DelFlag,SortOrder FROM BaseDictClass";
        return TSLobsterAPI.DbHelper.DbGetJsonData(this.data.dbConn, strsql);
    };
    //获取内容（分页）
    tsbasedictController.prototype.getdatacontext = function () {
        var classid = TSLobsterAPI.Program.RequestQuery("classid", "1001");
        var keywords = TSLobsterAPI.Program.RequestQuery("keywords", "");
        var pageInfo = {
            key: "Id",
            page: TSLobsterAPI.Program.RequestQuery('page', 0),
            perPage: TSLobsterAPI.Program.RequestQuery('limit', 10),
            totalRecord: 0,
            totalPage: 0
        };
        var strsql = "SELECT Id,ClassId,Code,Name,Pym,Wbm,Szm,Memo,DelFlag,SortOrder,CityFlag FROM BaseDictContent \
        WHERE ClassId=@classid and (Code LIKE @keywords or Name LIKE @keywords)";
        var dbparams = {
            classid: classid,
            keywords: "%" + keywords + "%"
        };
        var list = TSLobsterAPI.DbHelper.DbGetJsonData(this.data.dbConn, strsql, dbparams, pageInfo);
        return { list: list, count: pageInfo.totalRecord };
    };
    return tsbasedictController;
}());

//author:kakake
var tsbasedictDao = /** @class */ (function () {
    function tsbasedictDao() {
        this.dbConn = TSLobsterAPI.Program.GetDbConn();
    }
    return tsbasedictDao;
}());

//author:kakake
var tsbasedictService = /** @class */ (function () {
    function tsbasedictService() {
    }
    return tsbasedictService;
}());

